import asyncio
from fastmcp import Client

client = Client("my_server.py")

async def call_tool(name: str):
    async with client:
        result = await client.call_tool("greet", {"name": name})
        ans = await client.call_tool("add", {"a": 1, "b": 2})
        print(result)
        print(ans)

